﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/head.jspf"%>   
<title>东方易云后台管理系统</title>
<style>
body { background: #f5f5f5 ;}
</style>
<script>
function addFlowActivityTemplate(){
	$('#addForm').attr("action","addFlowActivityTemplate");
	$('#addForm').submit();
}
function addSubmit(){
	$('#addForm').attr("action","addSubmit");
	$('#addForm').submit();
}
function addFlowActivityTemplatePrev(){
	$('#addForm').attr("action","addFlowActivityTemplatePrev");
	$('#addForm').submit();
}
function removeFlowActivityTemplate(activityNo){
	$('#addForm').attr("action","removeFlowActivityTemplate");
	$('#activityNo').val(activityNo);
	$('#addForm').submit();
}
</script>
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="js/pngfix.js"></script>
<![endif]-->
</head>
<body>
<form method="post" action="addFlowTemplateNext" id="addForm">
<input type="hidden" id="activityNo" name="activityNo" value=""/>
<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background -->
  <div id="main-content">
    <!-- Main Content Section with everything -->
    <!-- Page Head -->
    <div id="page-title">
      <h3>企业业务流程<c:choose><c:when  test="${isEdit==null}">新建</c:when><c:otherwise>编辑</c:otherwise></c:choose>：活动信息</h3>
    </div>
    <div class="pgline"></div>    
    <div class="clear"></div>

    <div id="page-title">
      <h4>活动信息</h4>
    </div>
    <div class="pgline"></div>
    <div class="bulk-actions align-left"><a class="button2" a href="javascript:void(0);" onclick="addFlowActivityTemplate();">新建活动</a> </div>
    <div class="clear"></div>

    <div class="bulk-actions align-left"> </div>
    <div class="clear"></div>
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>活动列表</h3>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab">
          <table>
            <thead>
              <tr>
                <th>活动编号</th>
                <th>活动名称</th>
                <th>活动顺序</th>
                <th>活动起点</th>
                <th>活动终点</th>
                <th>操作</th>
              </tr>
            </thead>          
            <tbody>
            	<c:forEach items="${dataxFlowActivityTemplateVOList}" var="dataxFlowActivityTemplateVO">            	
	            	<tr>
	                <td><c:out value="${dataxFlowActivityTemplateVO.id.activityNo}"/> </td>
	                <td><c:out value="${dataxFlowActivityTemplateVO.activityName}"/></td>
	                <td><c:out value="${dataxFlowActivityTemplateVO.activityOrder}"/></td>
	                <td><c:out value="${optionNodeMap[dataxFlowActivityTemplateVO.actorStart]}"/></td>
	                <td><c:out value="${optionNodeMap[dataxFlowActivityTemplateVO.actorEnd]}"/></td>
	                <td><a href="javascript:void(0);" onclick="removeFlowActivityTemplate('<c:out value="${dataxFlowActivityTemplateVO.id.activityNo}"/>');">删除</a></td>
	              	</tr>
            	</c:forEach>
            </tbody>
          </table>
        </div>
        <!-- End #tab1 -->
      </div>
      <!-- End .content-box-content -->
    </div>    
  <div class="bulk-actions align-right">
  <a class="button2" href="javascript:void(0);" onclick="addFlowActivityTemplatePrev();">上一步</a>
  <a class="button2" href="javascript:void(0);" onclick="addSubmit();">提交</a>
  </div>
  <!-- End #main-content -->
</div>
</form>
</body>
</html>
